using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ShopForWeb.Model.View
{
    public class OrderView
    {
        /// <summary>
    /// 订单日期
    /// </summary>

   public string OrderDate { get; set; } = "";

    /// <summary>
    /// 订单 ID，UID
    /// </summary>

   public string OrderId { get; set; } = "";

    /// <summary>
    /// 订单状态
    /// </summary>

   public int StatusCode { get; set; } = 1;

    /// <summary>
    /// 地址
    /// </summary>
  
    public string TakeAddress { get; set; } = "";

    /// <summary>
    /// 收货人
    /// </summary>
   
   public string TakeName { get; set; } = "";

    /// <summary>
    /// 收货电话
    /// </summary>
  
    public string TakePhone { get; set; } = "";

    /// <summary>
    /// 总金额
    /// </summary>

  public decimal TotalAmount { get; set; }

    /// <summary>
    /// 用户 ID ，自增
    /// </summary>
  
   public long UserId { get; set; }
   public string UserName {get;set;}="";
   public string Phone { get; set;}="";
   public string OrderList
 {
      get
    {
       if (StatusCode == 1) return "已付款";
        else if (StatusCode == 2) return "未付款";
       else return "全部";
    }
  }
    }
}